package cn.lili.controller.feign.system;

import cn.lili.modules.other.service.HotWordsHistoryService;
import cn.lili.modules.search.entity.dos.HotWordsHistory;
import cn.lili.modules.system.client.HotWordsHistoryClient;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author paulG
 * @since 2022/7/1
 **/
@RestController
@RequiredArgsConstructor
public class HotWordsHistoryFeignController implements HotWordsHistoryClient {

    private final HotWordsHistoryService hotWordsHistoryService;


    @Override
    public boolean saveBatch(List<HotWordsHistory> hotWordsHistories) {
        return hotWordsHistoryService.saveBatch(hotWordsHistories);
    }
}
